const express = require('express');
// 创建应用
const app = express();
// localhost:8080/index
app.get('/index', (req, res)=>{
    res.send('首页');
})


app.listen(8080, ()=>{
    console.log('server run at 8080');
})